# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=gingerbase
pkgver=2.3.0
pkgrel=7
pkgdesc="Gingerbase: basic host management for WoK"
url="https://kimchi-project.github.io/gingerbase/"
arch="noarch !s390x !riscv64" # blocked by wok
license="AGPL-2.1"
depends="py3-configobj py3-pyparted wok"
makedepends="automake autoconf libtool
	python3-dev gettext-dev py3-pyflakes libxslt"
options="!check" # depends on unit2
subpackages="$pkgname-lang $pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/kimchi-project/gingerbase/archive/$pkgver.tar.gz"

prepare() {
	default_prepare
	sh ./autogen.sh --system
}

build() {
	./configure \
		--prefix=/usr \
		--sysconfdir=/etc \
		--localstatedir=/var \
		--disable-rpath \
		--enable-sample
	make
}

check() {
	make check
}

package() {
	make -j1 DESTDIR="$pkgdir" install
}

sha512sums="90167f677a341d687a426fd4938aecdcba2a36cd109d7e0f81b55a74b077f00253decd015d65a5ffbd075a320015153ddf70bfcbdbf85ff79c0895ba189437de  gingerbase-2.3.0.tar.gz"
